    <span class="building-title">UPGRADE BUILDING</span>
    
	<?php 
	    $baseUrl = $this->baseUrl('images/buildings/'.$this->buildingName.'.jpg');
	      
	    echo '<span class="content-text"> * Each upgrade of building will give you extra shelter for your army. </span>';
	    if( $this->level >= 1 && $this->level <= 6 )
		{
	   		echo '<span class="content-text">  * Building level 1 will unlock the ability to train this level type of units </span>';
	   		echo '<span class="content-text">  * Building level 2 will unlock the ability to hire this level type of units </span>';
	   		echo '<span class="content-text">  * Building level 3 will unlock the ability to buy weapons for this level type of units</span>';
			echo '<span class="content-text">  * Building level 4 will unlock the ability to buy armors for this level type of units</span>';
		}	
		
	    echo '<div class="building-requirements">';
		echo '<img src="'.$baseUrl.'"></img>';
		echo '<span class="content-text">Level '.$this->buildingLevel.'</span>';
	    echo '<span class="content-text">Next level requirements:</span>';
	    if ($this->buildingRestrictionMaxLevel != "0")
	    {
	        echo '<spanclass="content-text" > '.$this->buildingRestrictionMaxLevel. '</span>';
	        echo '</div>';
	    }
	    else 
	    {
	        if ($this->buildingRestrict != "0")
	        {
	          	$urlArray = array('controller' =>'buildings', 'action'=>'actions');
	            $building_nameUrl = str_replace(" ", "", $this->buildingRestrict); 
	            echo '<h3> <a href="'.$this->url($urlArray).'?v='.$building_nameUrl.'">'.ucfirst($this->buildingRestrict).'</a>'.' level '.$this->buildingRestrictLvl.'</h3>'; 
	        }
	        echo '<span class="content-text">'. $this->buildingUpgradeCost.' coins </span>';
	        echo '<span class="content-text">' .$this->capacity. '</span>';
			echo $this->buildingUpgrade;
	        echo '</div>';
	   
	    }

	$urlArrayBack = array('controller' =>'kingdom', 'action'=>'list');			
	echo '<a class="back-action" href="'.$this->url($urlArrayBack, null, true).'">&larr;&nbsp;Back To Kingdom</a>' ;
	?>